/*
 * @Descripttion: 
 * @version: 
 * @Author: wl
 * @Date: 2020-05-13 13:27:23
 * @LastEditors: wl
 * @LastEditTime: 2020-06-07 10:09:40
 */

import axios from '../axios';

/* 
 * 用户管理模块
 */

// 保存
export const save = data => {
  return axios({
    url: '/admin/service/sys_user_saveAndUpdate',
    method: 'post',
    data
  });
};
// 删除
export const batchDelete = data => {
  return axios({
    url: '/admin/service/DelData',
    method: 'post',
    data
  });
};
// 分页查询
export const findPage = data => {
  return axios({
    url: '/admin/service/getAUser_List ',
    method: 'post',
    data
  });
};
// 查找用户的菜单权限标识集合/admin/service/sys_meny_getPerms
//获取权限标识码列表
export const findPermissions = data => {
  return axios({
    url: '/admin/service/sys_meny_getPerms',
    method: 'post',
    data
  });
};
//新增，修改，删除单位
export const sys_company_operation = data => {
  return axios({
    url: '/admin/service/sys_company_operation',
    method: 'post',
    data
  });
};

//访客次数统计
export const sys_visitor_count = data => {
  return axios({
    url: '/admin/service/sys_visitor_count',
    method: 'post',
    data
  });
};

//病例添加

export const ywpt_data_edit = data => {
  return axios({
    url: '/admin/service/ywpt_data_edit',
    method: 'post',
    data
  });
};
//病例列表
export const ywpt_data_list = data => {
  return axios({
    url: '/admin/service/ywpt_data_list',
    method: 'post',
    data
  });
};
//权限验证
export const get_sensitive_auth = data => {
  return axios({
    url: '/admin/service/get_sensitive_auth',
    method: 'post',
    data
  });
};

//权限验证
export const tianque_gateway = data => {
  return axios({
    url: '/admin/service/tianque_gateway',
    method: 'post',
    data
  });
};

//获取个人信息
export const get_sensitive_fields = data => {
  return axios({
    url: '/admin/service/get_sensitive_fields',
    method: 'post',
    data
  });
};

//获取服务器时间戳
export const get_server_timestamp = data => {
  return axios({
    url: '/admin/service/get_server_timestamp',
    method: 'post',
    data
  });
};
